package cn.edu.just.firstjavaapp.l13;

import java.util.Date;

public class Main {
    public static void main(String[] args) {
        Box box = new Box();
//        Integer a = 100;
        box.put(new Date());

        String b = (String)box.take();//运行时，会抛ClassCastException
        System.out.println("in box:"+b);
    }
}
